package com.ios.dao;

import com.ios.entity.DisablerUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DisablerUserMapper {

    /**
    *@Author:WenTao
    *@Description:残疾人用户注册
    *@Date:9:19 2018/7/17
    */
    int insertSelective(DisablerUser record);


    DisablerUser selectByPrimaryKey(Integer id);

    /**
    *@Author:WenTao
    *@Description:残疾人用户信息更新
    *@Date:15:45 2018/7/18
    */
    int updateByPrimaryKey(DisablerUser record);

    /**
    *@Author:WenTao
    *@Description:获取所有电话号码
    *@Date:14:15 2018/7/17
    */
    List<String> getAllPhone();

    /**
    *@Author:WenTao
    *@Description:获取所有用户名
    *@Date:14:15 2018/7/17
    */
    List<String> getAllUsername();

    /**
    *@Author:WenTao
    *@Description:获取所有残疾人用户id
    *@Date:17:38 2018/7/17
    */
    List<Integer> getAllDisablerId();

    /**
    *@Author:WenTao
    *@Description:根据用户名插入图片地址
    *@Date:14:13 2018/7/17
    */
    int updateHeadImg(@Param("headImage") String headImage,@Param("username")String username);

    /**
    *@Author:WenTao
    *@Description:残疾人用户登录
    *@Date:17:53 2018/7/17
    */
    DisablerUser selectByUsername(String username);

    /**
    *@Author:WenTao
    *@Description:根据用户名查询
    *@Date:8:41 2018/7/18
    */
    DisablerUser queryByUsername(String username);
}